package com.echo.acc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author echo
 * date 2023-12-22 09:41:59
 **/
@Controller
public class IndexController {

    @RequestMapping("/index")
    public String index(Model model) {
        model.addAttribute("msg","echo账务系统");
        return "index";
    }

    @RequestMapping("/login")
    public String showLoginPage() {
        return "login";
    }

    @RequestMapping("/link/{fileName}")
    public String showLink1Page(@PathVariable String fileName, Model model) {
        model.addAttribute("fileName",fileName);
        return "link";
    }

}
